package nihe;
import nihe.*;
import java.io.*;

public class QuXianShuChu
{
	public QuXianShuChu(String str)
	{
		File sc=new File(str);
		try
		{
			if(!sc.exists())
				sc.createNewFile();
			QuXian qx=new QuXian();
			FileOutputStream fout=new FileOutputStream(str);
			String str1="拟合方式:曲线拟合\n";
			String str2="参数a="+qx.a+",参数b="+qx.b+",参数c="+qx.c+"\n";
			String str3="";
			for(int j=0;j<qx.db3.length;j++)
			{
				str3=str3+qx.db1[j]+"\t\t"+qx.db2[j]+"\t\t"+qx.db3[j]+"\n";
			}
			byte buf1[]=str1.getBytes();
			byte buf2[]=str2.getBytes();
			byte buf3[]=str3.getBytes();
			fout.write(buf1);
			fout.write(buf2);
			fout.write(buf3);
			fout.close();
		}
		catch(IOException e)
		{
			System.err.println(e);
		}
	}
}